package com.yundingai.service.impl;

import com.yundingai.domain.entity.Subject;
import com.yundingai.mapper.SubjectMapper;
import com.yundingai.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectServiceImpl implements SubjectService {

    @Autowired
    private SubjectMapper subjectMapper;

    @Override
    public List<Subject> selectAllSubject() {
        List<Subject> subjects = subjectMapper.selectAllSubject();
        return subjects;
    }
}
